package com.twu.biblioteca;

import java.util.Scanner;

public class Receiver {
    private Scanner scanner = new Scanner(System.in);
    public String getData(){
        return scanner.nextLine();
    }

    public int getDataInt(){
        int i = scanner.nextInt();
        scanner.nextLine();
        return i;
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        scanner.close();
    }


}
